package com.iflytek.application.common.resttemplate;

import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestOperations;

import java.util.Map;

/**
 * Created by guanxf on 2016-03-04.
 */
public interface ApplicationRestOperation extends RestOperations {

    <T> T getForObject(String url, Class<T> clazz, Map<String, Object> queryMap, Pageable pageable, Object... uriVariables) throws RestClientException;

    <T> T getForObject(String url, Class<T> clazz, Map<String, Object> queryMap, Pageable pageable, Map<String, ?> uriVariables) throws RestClientException;

    <T> ResponseEntity<T> getForEntity(String url, Class<T> clazz, Map<String, Object> queryMap, Pageable pageable, Object... uriVariables) throws RestClientException;

    <T> ResponseEntity<T> getForEntity(String url, Class<T> clazz, Map<String, Object> queryMap, Pageable pageable, Map<String, ?> uriVariables) throws RestClientException;

}
